package com.sloth.bear.dto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sloth.bear.dto.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 待办事项实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("todo")
public class Todo extends BaseEntity {

    /**
     * 分类id
     */
    private Long categoryId;

    private String title;

    private String content;

    private String status;

    private String priority;

    private String tags;

    private LocalDateTime dueDate;

    private LocalDateTime completedAt;

    /**
     * 是否置顶
     */
    private Boolean isTop;

    /**
     * 是否收藏
     */
    private Boolean isFavorite;

    /**
     * 星级
     */
    private Integer rating;
}